import github from "@/request";

export const getSearchRepositories = function(q){
	return github.get("/search/repositories",{
		params:{
			q
		}
	})
}
// https://api.github.com/search/users?q=react
// 根据用户关键字搜索
export const getSearchUsers = function(q){
	return github.get("/search/users",{
		params:{
			q
		}
	})
}